Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix random mod generating off-screen sliders #18596

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

hlysine
Copy link
Contributor

@hlysine hlysine commented Jun 7, 2022

This is a fix for #18559 (comment)

The issue is caused by long horizontal sliders spanning the whole width of the playfield. Rotating them 90 degrees causes them to go off-screen. This fix limits those large sliders to either 0 or 180 degrees rotation (whichever is closest to the original angle to which the algorithm wishes to rotate the slider).

Original map:
image

Old algorithm with seed 0:
image

This fix with seed 0:
image

@peppy
Copy link
Member

peppy commented Jul 8, 2022

Going to get this in since the code is non-offensive and it probably can't break things more than they already are.

@peppy peppy merged commit 8071335 into ppy:master Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants